package org.breathe.dynamic.thread.pool.example.config;

import org.breathe.dynamic.thread.pool.core.spring.ThreadPoolCreator;
import org.breathe.dynamic.thread.pool.core.thread.BreatheDtpExecutor;
import org.breathe.thread.pool.common.anno.SpringBreatheDtp;
import org.springframework.context.annotation.Configuration;

/**
 * @author: breathe
 * @createTime: 2025-05-19
 */
@Configuration
public class BreatheDynamicTpConfig {
    @SpringBreatheDtp
    public BreatheDtpExecutor breatheDtpExecutor() {
        return ThreadPoolCreator.createDynamicFast("mysql");
    }
}
